package com.wwj.server.game.msg;

import com.google.gson.annotations.SerializedName;
import com.wwj.server.game.common.MsgConstants;
import com.wwj.server.model.NetBaseMsg;

public class GameServerCmdMsg extends NetBaseMsg {

    private String type = MsgConstants.GAME_SERVER_CMD;

    private String cmd;

    @SerializedName("device_id")
    private String deviceId;

    @SerializedName("user_id")
    private String userId;

    private String key;

    private String extra;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public GameServerCmdMsg() {
    }

    public GameServerCmdMsg(UserCmdMsg userCmdMsg) {
        this.cmd = userCmdMsg.getCmd();
        this.deviceId = userCmdMsg.getDeviceId();
        this.userId = userCmdMsg.getUserId();
        this.key = userCmdMsg.getKey();
        this.extra = userCmdMsg.getExtra();
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }
}
